string = input("请输入一个字符串: ")
result = {}
for s in string:
    if s.isalpha() or s.isdigit():
        result[s] = result.get(s, 0) + 1
print(result)
